package cn.wolfcode.p2p.bussness.service;

import cn.wolfcode.p2p.base.query.QueryObject;
import cn.wolfcode.p2p.bussness.domain.RechargeOffline;
import com.github.pagehelper.PageInfo;

public interface IRechargOfflineService {
    int save(RechargeOffline rechargeOffline);

    int update(RechargeOffline rechargeOffline);

    RechargeOffline get(Long id);

    PageInfo queryPage(QueryObject qo);

    /**
     * 线下充值
     * @param rechargeOffline
     */
    void apply(RechargeOffline rechargeOffline);

    /**
     * 审核提交过来的充值单
     * @param id    充值单对象ID
     * @param state 审核状态
     * @param remark 审核内容
     */
    void audit(Long id, Integer state, String remark);
}
